<%-------------------------------------------------------------------
 * 页面名称：myunspay_corp.jsp
 * 功能描述：首页－我的－企业
 * Action  : /logon.do
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%
	String path = request.getContextPath();

	String email = (String)request.getSession().getAttribute("email");
	if (email==null) {
		email = "";
	} else {
		request.getSession().removeAttribute("email");
	}
	String operator = (String)request.getSession().getAttribute("operator");
	if (operator==null) {
		operator = "";
	} else {
		request.getSession().removeAttribute("operator");
	}
%>
<head>
<title>我的账户- 企业使用流程</title>
</head>
<script type="text/javascript" src="<%=path%>/page/information/js/ins_tab.js"></script>
<script type="text/javascript" src="<%=path%>/js/vnv/commonForMutual.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
	// 刷新校验码
	function refreshVericode(imgObjName) {
		var now = new Date();
		getObj(imgObjName).src = '<%=path%>/page/util/verifyImage.jsp?now='+now.getTime().toString();
	}

	function logon(type) {
		document.getElementById("logon_atype").value = type;
		
		if(type == "B") { //企业
			
			if(emptyValidate(getObj("logon_corp_email"),"Email") != "") {
				getObj("logon_corp_email").focus();
				return false;
			}		
			if(emptyValidate(getObj("logon_corp_operator"),"操作员") != "") {
				getObj("logon_corp_operator").focus();
				return false;
			}
			if(emptyValidate(getObj("logon_corp_passCorp"),"登录密码") != "") {
				getObj("logon_corp_passCorp").focus();
				return false;
			}	
			if(emptyValidate(getObj("logon_corp_sys_vericode"),"校验码") != "") {
				getObj("logon_corp_sys_vericode").focus();
				return false;
			}		
		}
				
		document.getElementById("url").value=location.href;
		
		document.frmLogon.submit();
	}
	
	function corp() {
		if(event.keyCode==13){
			logon('B');
		}
	}
//-->
</SCRIPT>

<!-- 页头菜单 -->
<jsp:include page="/page/information/head.jsp?currentFunc=myunspay"/>
<div id="content2">
	<!-- 企业登录区域 -->
   <div class="content_left2">
   <!-- 用户已登录内容 -->
   <logic:present name="sessionAccountSummary">
	<div class="logined_title">系统提示</div>

	<div class="main0" id="main0">
	<ul class="block3">
		<li></li>
		<li><span class="bluefont14b">您已登录网站</span>&nbsp;&nbsp;[<a href="javascript:document.location.href='<%=path%>/logout.do?from=success'" class="bluefont12d" >退出登录</a>]</li>
		<li>
		<div class="login_id"><span class="gray12">您正在使用的账户为：</span><br />
		<span class="orangefont14b2">
		<logic:notEmpty name="sessionAccountSummary" property="account.email">
			<bean:write name="sessionAccountSummary" property="account.email"/>
		</logic:notEmpty>
		<logic:empty name="sessionAccountSummary" property="account.email">
			<bean:write name="sessionAccountSummary" property="account.mobile"/>
		</logic:empty>				
		</span><br />
		<span class="gray12">您上次来访时间：</span><br />
		<span class="orangefont14b3">
			<bean:write name="sessionAccountSummary" property="user.lastLogin" format="yyyy-MM-dd HH:mm:ss"/>
		</span></div>
		</li>
		<li><a href="#" class="bluefont12">　　
		<input name="enterPay" type="button" onclick="javascript:document.location.href='<%=path%>/route.do?modual=space'" class="mobile_button" value="进入账户" />
		</a></li>
	</ul>
	</div>
   </logic:present>
   <!-- 用户已登录区域结束 -->
   <!-- 用户未登录内容 -->
   <logic:notPresent name="sessionAccountSummary">
   <form name="frmLogon" action="<%=path%>/logon.do" method="post" >
   <input type="hidden" id="logon_atype" name="logon_atype" />
     <div class="logoin_t"><span class="backfont18b">企业登录</span></div>
	 <div class="login_c" onKeyDown="corp()">
	    <ul>
		   <li>Email</li>
		   <li>
		     <input name="logon_corp_email" type="text" class="login_inputsytle" maxlength="100"/>
			 <input type="hidden" id="from" name="from" value="myspace_corp_failure"/>
			 <input type="hidden" id="url" name="url"/>
		   </li>
		   <li>操作员</li>
		   <li>
		     <input name="logon_corp_operator" type="text" class="login_inputsytle" maxlength="64" />
		   </li>
		   <li>登录密码</li>
		   <li>
		     <input name="logon_corp_passCorp" type="password" class="login_inputsytle" />
		   </li>
		   <li>校验码
		   <input name="logon_person_sys_vericode" maxlength="4" type="text" size="2" onblur="killSpace(this);" utext="校验码" uregular="UValidate.notEmpty"/>
            <img name="logon_sys_vericode_image0" src="<%=path%>/page/util/verifyImage.jsp" width="60" height="24"  title="校验码" align="absmiddle" />
            &nbsp;<img class="arrowPosi" src="<%=path%>/page/information/images/reset.gif" width="13" height="12" align="absmiddle" style="cursor:hand;" title="看不清校验码请点击此图标刷新！" onclick="javascript:refreshVericode('logon_sys_vericode_image0');" />
		   </li>
		   <li>
		     <input name="corpLogon" type="button" class="home_login_button"  onclick="logon('B')" value="登录" title="用户登录" />
		     <a href="<%=path%>/toCompanyRegister.do" class="bluefont12">　点此立即注册！</a></li>
		   <li><span class="backfont12">您只需拥有E-mail或者手机，就可享受安全、快捷的网上支付</span></li>
		   <li><a href="<%=path%>/toActimail.do" class="bluefont12">重发激活信</a> 
		   <a href="<%=path%>/toActivate.do" class="bluefont12">填写激活码</a></li>
		   <li> <img src="<%=path%>/page/information/images/q_icon.gif" width="14" height="14" align="absmiddle" /> 
		   <a href="<%=path%>/toForgot.do" class="bluefont12">忘记密码了？</a></li>
		</ul>
	 </div>
	 </form>
	 </logic:notPresent>
	 <!-- 企业登录区域结束 -->
	 <div class="login_b"></div>
	 
	 <div class="promotion_t">促销活动</div>
	 <div class="promotion_c2">平台开通合作联合促销<br />
	   推荐商户<br />
	   共享广告资源 <br />
	   折上折优惠</div>
  </div>
  
   <div class="content_right">
     <div class="path_info">   <img src="<%=path%>/page/information/images/home_icon.gif" />  
	 <a href="<%=path%>/main.do" class="bluefont12">首页</a>>> 我的账户</div>
	   
	 <div style="clear:both;"></div>
	 <div class="my_unspace">
	    <div class="my_unspace_t"><img src="<%=path%>/page/information/images/myspace_06.gif" style="float:left;" align="absmiddle" /><h3>企业使用流程</h3></div>
		<div class="my_unspace_c">
		   <div class="my_unspace_c_left">
	      </div>
		   <div class="my_unspace_c_right"><img src="<%=path%>/page/information/images/p2.gif" width="368" height="246" alt="企业使用流程" /></div>
		</div>
	 </div>
	 
  </div>
   <div style="clear:both"></div>
</div>

<div style="clear:both;"></div>
<!-- 页尾菜单 -->
<jsp:include page="/page/information/foot.jsp"/>
<%
	// 返回错误提示时保留输入的账号内容
	if (!operator.equals("")) {
%>
	<script language="javascript">
		switchTab(0,1);
		getObj('logon_corp_email').value='<%=email%>';
		getObj('logon_corp_operator').value='<%=operator%>';
		getObj("logon_corp_email").focus();
	</script>
<%
	} else if (!email.equals("")) {
%>
	<script language="javascript">
		getObj('logon_person_email').value='<%=email%>';
		getObj("logon_person_email").focus();
	</script>
<%
	}
%>
<jsp:include page="/page/common/bankFramePage/message.jsp"/>
